<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [href]{
            color: red;
        }
        [href="son"]{
            color: rgb(131, 180, 16);
        }
        [href$="wc"]{
            color: rgb(166, 16, 196);
        }
        [href^="#"]{
            color: rgb(17, 145, 196);
        }
    </style>
</head>
<body>
    <a href="">9789</a>
    <a href="son">46456</a>
    <a href="www.baidu.comwc">2345</a>
    <a href="#www.baidu.com">457789</a>
</body>
</html>